package com.pic.others.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pic.others.domain.po.Picture;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author koshi
 * @since 2023-11-24
 */
public interface PictureMapper extends BaseMapper<Picture> {

    public Picture getPictureByCategoryAndUserId(@Param("categoryId") long categoryId, @Param("userId") long userId);

    Picture selectPictureByLocate(@Param("locate") String locate);


    List<Long> getNewFivePictureByCategory(@Param("categoryId") Long categoryId,
                                          @Param("userId") Long userId);
}
